Package-level declarations

Types

Link copied to clipboard
@Serializable
data class IsochroneFeature(val type: String, val properties: IsochroneProperties, val geometry: IsochroneGeometry)

Individual isochrone feature.

Link copied to clipboard
@Serializable
data class IsochroneGeometry(val type: String, val coordinates: List<List<List<Double>>>)

Geometry of an isochrone feature.

Link copied to clipboard
@Serializable
data class IsochroneProperties(val groupIndex: Int, val value: Double, val center: List<Double>)
Link copied to clipboard
@Serializable
data class IsochronesEngine(val version: String, val buildDate: String, val graphDate: String, val osmDate: String)
Link copied to clipboard
@Serializable
data class IsochronesMetadata(val attribution: String, val service: String, val timestamp: Long, val query: IsochronesQuery, val engine: IsochronesEngine)
Link copied to clipboard
@Serializable
data class IsochronesOptions(val avoidBorders: String? = null, val avoidFeatures: List<String>? = null, val avoidPolygons: JsonElement? = null)

Subset of useful options. Extend as needed.

Link copied to clipboard
@Serializable
data class IsochronesQuery(val profile: String, val profileName: String, val locations: List<List<Double>>, val range: List<Double>, val rangeType: String? = null)
Link copied to clipboard
@Serializable
data class IsochronesRequest(val locations: List<List<Double>>, val range: List<Int>, val rangeType: String? = null, val attributes: List<String>? = null, val id: String? = null, val intersections: Boolean? = null, val interval: Int? = null, val locationType: String? = null, val smoothing: Double? = null, val options: IsochronesOptions? = null)

ORS Isochrones request Docs: /v2/isochrones/{profile}

Link copied to clipboard
Link copied to clipboard

Java-friendly builder counterpart.

Link copied to clipboard
@Serializable
data class IsochronesResponse(val type: String, val bbox: List<Double>, val features: List<IsochroneFeature>, val metadata: IsochronesMetadata)

GeoJSON response returned by the isochrones endpoint.

Functions

Link copied to clipboard

DSL for constructing IsochronesRequest objects.